using System;
using System.Collections.Generic;
using System.Text;
using JobShopModel.Model.FactoryLvl;
using JobShopModel.Model;

namespace JobShopModel.Events
{
    class EmptyEvent:IEvent
    {

        private Time sTime;

        public EmptyEvent(Time sTime)
        {
            this.sTime = sTime;
        }

        #region IEvent Membres

        public JobShopModel.Model.FactoryLvl.Time ExecTime
        {
            get { return this.sTime; }
        }

        public JobShopModel.Model.Logger Logger
        {
            get { return Logger.GetLogger(); }
        }

        public void Process()
        {
            //Do Nothing
            Logger.InsertElement(new LogItem(ItemPriorities.URGENT, Factory.getInstance().CurrentTime, "Simulation is done"));
        }

        #endregion

        #region IComparable<IEvent> Membres

        public int CompareTo(IEvent other)
        {
            return this.ExecTime.CompareTo(other.ExecTime);
        }

        #endregion
    }
}
